package com.vito.oa.act.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.vito.oa.act.model.ProcessGroupModel;

public interface OaActProcessGroupMapper {
public List<ProcessGroupModel> queryGroups(ProcessGroupModel group);
public ProcessGroupModel queryGroupById(@Param("groupId")String groupId);
public ProcessGroupModel queryGroupByKey(@Param("processKey")String processKey
		,@Param("companyId")String companyId);

public List<ProcessGroupModel> queryGroupsAndProcess(Map<String, String> param);
public int queryGroupProcessCount(@Param("groupId")String groupId);


public int saveDefinedGroup(ProcessGroupModel group);
public void updateDefinedGroup(ProcessGroupModel group);
public void deleteDefinedGroup(@Param("groupId")String groupId);

public void addProcessToGroup(ProcessGroupModel process);
public void deleteProcessFromGroup(@Param("groupId")String groupId,@Param("processKey")String processKey);
public void deleteAllProcessOfGroup(@Param("groupId")String groupId);

public Integer getGroupOrder(@Param("companyId")String companyId);

//查询没有组的流程key
public String[] queryProcessOutGroup(@Param("companyId")String companyId);
}
